package HuaRongDao;

public class Node {
    private int id;
    private boolean direction;//true为横放，false为竖放
    private int x;//左上角数组x下标
    private int y;//左上角数组y下标

    public Node(int id,int x,int y,boolean direction){
        this.id = id;
        this.x = x;
        this.y = y;
        this.direction = direction;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public boolean getDirection() {
        return direction;
    }

    public void setDirection(boolean direction) {
        this.direction = direction;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }


}